package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceWareMapper;
import com.ruoyi.system.domain.InvoiceWare;
import com.ruoyi.system.service.IInvoiceWareService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-19
 */
@Service
public class InvoiceWareServiceImpl implements IInvoiceWareService 
{
    @Autowired
    private InvoiceWareMapper invoiceWareMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public InvoiceWare selectInvoiceWareById(Long id)
    {
        return invoiceWareMapper.selectInvoiceWareById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param invoiceWare 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<InvoiceWare> selectInvoiceWareList(InvoiceWare invoiceWare)
    {
        return invoiceWareMapper.selectInvoiceWareList(invoiceWare);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param invoiceWare 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInvoiceWare(InvoiceWare invoiceWare)
    {
        return invoiceWareMapper.insertInvoiceWare(invoiceWare);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param invoiceWare 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInvoiceWare(InvoiceWare invoiceWare)
    {
        return invoiceWareMapper.updateInvoiceWare(invoiceWare);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceWareByIds(Long[] ids)
    {
        return invoiceWareMapper.deleteInvoiceWareByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceWareById(Long id)
    {
        return invoiceWareMapper.deleteInvoiceWareById(id);
    }
}
